package com.wp.controller.school;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.wp.common.RequestUtil;

@Controller
public class SeniorController{
	private static Logger log = Logger.getLogger(JuniorController.class);
	
	//传递高中学校的编码，跳入高中对应的页面
	@SuppressWarnings("unchecked")
	@RequestMapping("school/senior.do")
	public ModelAndView jumpToSenior(HttpServletRequest req,Model model){
		Map<String,Object> params = RequestUtil.getParams(req);
		log.info(params);
		model.addAllAttributes(params);
		return new ModelAndView("school/senior");
	}
	
}
